package com.nine.controller;

import com.nine.entity.MyReturn;
import com.nine.utils.RetStatusEnum;

/**
 * @author ：婷儿
 * @date ：Created in 2022/6/23 16:57
 * @description：所有controller的父亲
 * @modified By：
 * @version: 1.0
 */
public class ControllerFather {
    public MyReturn getSuccessResult(MyReturn res){
        res.setCode(RetStatusEnum.SUCCESS.getCode());
        res.setMsg(RetStatusEnum.SUCCESS.getMsg());
        return res;
    }
    public MyReturn getFailResult(MyReturn res){
        res.setCode(RetStatusEnum.FAILE.getCode());
        res.setMsg(RetStatusEnum.FAILE.getMsg());
        return res;
    }
    public MyReturn getNotTestCode(MyReturn res) {
        res.setCode(RetStatusEnum.NotTestCode.getCode());
        res.setMsg(RetStatusEnum.NotTestCode.getMsg());
        return res;
    }
}
